#include "Sunnet.h"
#include <iostream>
#include <memory>
#include <unistd.h>
#include <sys/types.h>

using namespace std;


// int TestEcho(){
// 	auto t = make_shared<string>("gateway");
// 	uint32_t gateway = Sunnet::inst->NewService(t);
// }

int main(){
	cout << "[main] pid=" << getpid() << endl;
	new Sunnet();
	Sunnet::inst->Start();
	//启动main服务
	auto t = make_shared<string>("main");
	Sunnet::inst->NewService(t);
	//Wait
	Sunnet::inst->Wait();
	return 0;
}